<?php
// no direct access
defined('_JEXEC') or die('Restricted access');
JTable::addIncludePath ( JPATH_COMPONENT. DS . 'tables' );                   
$controller = JRequest::getVar('view', 'chuyen_hang' );
$path = JPATH_COMPONENT . DS . 'controllers' . DS . $controller . '.php';
$user = & JFactory::getUser();
if (file_exists ( $path )) {
	require_once $path;
} else {	
	require_once JPATH_COMPONENT . DS . 'controllers' . DS . 'controller.php';
}
$classname = 'order_branchController' . ucfirst($controller);//doi ten com
$controller = new $classname (); 
$controller->execute ( JRequest::getVar ( 'task' ) );
$controller->redirect ();